By comparing the identities of two entities, this inversion control method handles the request to determine if those are equal.

The identity of each entity is obtained by reading a property named "Id", if present.

Namespace: Keystone.Carbonite
Assembly: Keystone.Carbonite (in Keystone.Carbonite.dll)

protected virtual bool OnAreEqual( 
TEntity leftEntity
TEntity rightEntity 
)
This language is not supported or no code example is available.

Parameters

leftEntity

Type: TEntity

The left entity.

rightEntity

Type: TEntity

The right entity.

Return Value

true if the identities of the two entities are equal, false otherwise.
Exception type Condition

NotSupportedException

If one or both entities does not have a property named "Id".

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono